package com.bingbing.back.service.Impl;

import com.bingbing.back.mapper.EchartsAreaMapper;
import com.bingbing.back.mapper.EchartsIndustryMapper;
import com.bingbing.back.mapper.EchartsJobMapper;
import com.bingbing.back.mapper.EchartsProspectMapper;
import com.bingbing.back.po.EchartsArea;
import com.bingbing.back.po.EchartsIndustry;
import com.bingbing.back.po.EchartsJob;
import com.bingbing.back.po.EchartsProspect;
import com.bingbing.back.service.EchartsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EchartsServiceImpl implements EchartsService {
    @Resource
    private EchartsIndustryMapper echartsIndustryMapper;
    @Resource
    private EchartsJobMapper echartsJobMapper;
    @Resource
    private EchartsAreaMapper echartsAreaMapper;
    @Resource
    private EchartsProspectMapper echartsProspectMapper;

    @Override
    public List<EchartsIndustry> showIndustryById(int majorId) {
        return echartsIndustryMapper.showIndustryById(majorId);
    }

    @Override
    public List<EchartsJob> showJobById(int majorId) {
        return echartsJobMapper.showJobById(majorId);
    }

    @Override
    public List<EchartsArea> showAreaById(int majorId) {
        return echartsAreaMapper.showAreaById(majorId);
    }

    @Override
    public List<EchartsProspect> showProspectById(int majorId) {
        return echartsProspectMapper.showProspectById(majorId);
    }
}
